package com.lz.app.demo.configuration;

import io.rong.RongCloud;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Title: RongCloudConfig
 * @ProjectName app-service
 * @Author huchao
 * @Date 2018/9/6下午4:34
 */
@Configuration
public class RongCloudConfig {

	/**
	 * 此处替换成您的appKey
	 */
	@Value("${RongCloud.appKey}")
	private String appKey;


	/**
	 * 此处替换成您的appSecret
	 */
	@Value("${RongCloud.appSecret}")
	private String appSecret;

	@Bean
	public RongCloud rongCloud() {
		return RongCloud.getInstance(appKey, appSecret);
	}
}
